﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Zarion_Quest.Base
{
    abstract class BaseLevel
    {
        private ContentManager content;
        /// <summary>
        /// O conteúdo carregado pertence ao level. Quando ele acabar faz sentido que o conteúdo vá junto na mesma hora
        /// </summary>
        public ContentManager Content
        {
            get { return content; }
        }

        public BaseLevel()
        {
            content = new ContentManager(Game1.Self.Services, Game1.Self.Content.RootDirectory);
        }
        public abstract void Update(GameTime gameTime);
        public abstract void Draw(GameTime gameTime, SpriteBatch spriteBatch);
        public void UnloadContent()
        {
            content.Unload();
        }
    }
}
